from flask import Flask,render_template

app = Flask(__name__)


@app.route('/hello')
def hello_world():  # put application's code here
    return 'Hello World!1232'

@app.route('/')
def index():  # put application's code here
    age = 18
    return render_template('index.html',age=age)


if __name__ == '__main__':
    # app.run()
    app.run(host='127.0.0.1', port=8080 ,debug=True)  # 必须指定 host